package com.mp.approvalreq.entity.dto;


import java.util.Objects;

public class GeneralRequestDTO {
	/**
	 *  数据表主键
	 */
	private Integer id;
	/**
	 *   审批流对应项目id,在pt_mp_general_project_code_desc
	 */
	private Integer project;
	/**
	 *  审批流
 	 */
	private String allJudger;
	
	public GeneralRequestDTO() {
	}
	
	public Integer getId() {
		return id;
	}
	
	public void setId(Integer id) {
		this.id = id;
	}
	
	public Integer getProject() {
		return project;
	}
	
	public void setProject(Integer project) {
		this.project = project;
	}
	
	public String getAllJudger() {
		return allJudger;
	}
	
	public void setAllJudger(String allJudger) {
		this.allJudger = allJudger;
	}
	
	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (o == null || getClass() != o.getClass()) {
			return false;
		}
		GeneralRequestDTO that = (GeneralRequestDTO) o;
		return Objects.equals(id, that.id) &&
				Objects.equals(project, that.project) &&
				Objects.equals(allJudger, that.allJudger);
	}
	
	@Override
	public int hashCode() {
		return Objects.hash(id, project, allJudger);
	}
	
	@Override
	public String toString() {
		return "GeneralRequestDTO{" +
				"id=" + id +
				", project=" + project +
				", allJudger='" + allJudger + '\'' +
				'}';
	}
}
